/*
 * $Id: EmployeeByLanguage.java 89 2012-12-28 10:57:30Z Denis.Skalsky@gmail.com $
 */	
package com.globallogic.skalskyy.javabasic.valstaff.commands;

import java.util.List;

import com.globallogic.skalskyy.javabasic.valstaff.Employee;
import com.globallogic.skalskyy.javabasic.valstaff.Staff;


/**
 * EmployeeByLanguage is to get list of software engineers by language.
 * @author $Author: Denis.Skalsky@gmail.com $
 * @version $Revision: 89 $
 */
public class EmployeeByLanguage extends Command {

	@Override
	public List<String> execute(String parameters) {
		List<Employee> listEmployee = Staff.getInstance().findByLanguage(parameters);
		
		return CommandPool.getInstance().convertEmployeesToString(listEmployee);
	}
}